$OpenBSD: patch-cmake_FindGDAL_cmake,v 1.6 2015/03/16 20:06:33 landry Exp $
--- cmake/FindGDAL.cmake.orig	Thu Feb 26 10:12:00 2015
+++ cmake/FindGDAL.cmake	Tue Mar  3 10:15:34 2015
@@ -160,7 +160,7 @@ ELSE(WIN32)
             SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.dylib CACHE STRING INTERNAL FORCE)
           ENDIF (NOT GDAL_LIBRARY)
         ELSE (APPLE)
-          SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.so CACHE STRING INTERNAL)
+          FIND_LIBRARY(GDAL_LIBRARY NAMES gdal PATHS ${LOCALBASE}/lib)
         ENDIF (APPLE)
       
       ELSE(GDAL_CONFIG)
